/**Paper Models**/

*Center Party Unity
gen cunity110=unity110-93.20712

**Table 1 Models
*Previous Question Model
logit prevquestion c.cunity110##i.dem years vote2006 frosh 
lincom c.cunity110+1.dem#cunity110
*Passage Model
logit commission c.cunity110##i.dem years vote2006 frosh
lincom c.cunity110+1.dem#cunity110  

**Figure 2
logit prevquestion c.unity110##i.dem years vote2006 frosh 
margins, at(unity110=(70(1)100) dem=1 frosh=0) atmeans
marginsplot
margins, at(vote2006=(50(1)100) dem=1 frosh=0) atmeans
marginsplot
logit commission c.unity110##i.dem years vote2006 frosh
margins, at(unity110=(70(1)100) dem=1 frosh=0) atmeans
marginsplot
margins, at(vote2006=(50(1)100) dem=1 frosh=0) atmeans
marginsplot

**Predicted probabilities described in text on pp. 8-9--Requires SPOST commands
gen unity110Xdem=unity110*dem
*5th to 95th percentile unity
logit prevquestion unity110 dem unity110Xdem years vote2006 frosh 
prvalue, x(unity110=81.9 dem=1 unity110Xdem=81.9 frosh=0) rest(mean) save
prvalue, x(unity110=99.4 dem=1 unity110Xdem=99.4 frosh=0) rest(mean) diff
*25 to 75th percentile unity
prvalue, x(unity110=95.03 dem=1 unity110Xdem=95.03 frosh=0) rest(mean) save
prvalue, x(unity110=98.7 dem=1 unity110Xdem=98.7 frosh=0) rest(mean) diff
*5th to 95th percentile vote share
prvalue, x(vote2006=51.9 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) save
prvalue, x(vote2006=100 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) diff
*25th to 75th percentile vote share
prvalue, x(vote2006=59.5 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) save
prvalue, x(vote2006=74.3 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) diff

logit commission unity110 dem unity110Xdem years vote2006 frosh 
*5th to 95th percentile unity
prvalue, x(unity110=81.9 dem=1 unity110Xdem=81.9 frosh=0) rest(mean) save
prvalue, x(unity110=99.4 dem=1 unity110Xdem=99.4 frosh=0) rest(mean) diff
*25 to 75th percentile unity
prvalue, x(unity110=95.03 dem=1 unity110Xdem=95.03 frosh=0) rest(mean) save
prvalue, x(unity110=98.7 dem=1 unity110Xdem=98.7 frosh=0) rest(mean) diff
*5th to 95th percentile vote share
prvalue, x(vote2006=51.9 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) save
prvalue, x(vote2006=100 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) diff
*25th to 75th percentile vote share
prvalue, x(vote2006=59.5 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) save
prvalue, x(vote2006=74.3 dem=1 frosh=0 unity110=93.32 unity110Xdem=93.32) rest(mean) diff

**Table 2 Models with NOMINATE
*Column 1
logit prevquestion unity110 dwnom1 years vote2006 frosh if dem==1
*Column 2
logit commission unity110 dwnom1 years vote2006 frosh if dem==1
*Column 3
logit prevq unity110 dwnom1 years vote2006 if dem==0
*Column 4
logit commission unity110 dwnom1 years vote2006 frosh if dem==0

**Adding together (co)sponsorship of Ethics Commission Bills
gen coethicscommission=co97+co895+co1018+co1136+co1754+co2544+co2822+co4239
*Creating binary cosponsor ethics commission variable
gen binaryethics=coethicscommission
replace binaryethics=1 if binaryethics==2
tab binaryethics coethicscommission

**Table 3 Model
logit binaryethics c.cunity110##i.dem years vote2006 frosh 
*Figure 1
logit binaryethics c.unity110##i.dem years vote2006 frosh 
margins, at(unity110=(70(1)100) dem=1 frosh=0) atmeans
marginsplot

**(Co)sponsoring Hill Bills
gen cohill=co1018+co1754
gen cononhill=co97+co895+co1136+co2544+co2822+co4239

**Prev. Question Vote by Hill Bill Cosponsorship
gen binarycohill=cohill
replace binarycohill=1 if binarycohill==2
prtest prevq if dem==1, by(binarycohill)

***Appendix Models

**Table A1**
logit prevq unity110 years vote2006 frosh if dem==1
estat ic
logit commission unity110 years vote2006 frosh if dem==1
estat ic
logit prevq dwnom1 years vote2006 frosh if dem==1
estat ic
logit commission dwnom1 years vote2006 frosh if dem==1
estat ic

**Table A2**
logit prevq unity110 years vote2006 if dem==0
estat ic
logit commission unity110 years vote2006 frosh if dem==0
estat ic
logit prevq dwnom1 years vote2006 if dem==0
estat ic
logit commission dwnom1 years vote2006 frosh if dem==0
estat ic


